﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sys.WebRes.Publish.Areas.Admin.Models
{
    public class ResourceRowModel
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string GUID { get; set; }
        public int ResTypeID { get; set; }
        public int StatusTypeID { get; set; }
        public int? SectionID { get; set; }
        public string SectionName { get; set; }
        public string FilePath { get; set; }
        public int CreatorID { get; set; }
        public string CreatorName { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime? UpdateDate { get; set; }

        public string CDateString { get { return this.CreateDate.ToString("yyyy/MM/dd hh:mm:ss"); } }
        public string UDateString { get { return this.UpdateDate==null?"":(this.UpdateDate??DateTime.Now).ToString("yyyy/MM/dd hh:mm:ss"); } }
    }
}